const { app, router } = require('./initServe');

const StudentController = require('../controller/StudentController');
const TeacherController = require('../controller/TeacherController');
// const ClassRoomController = require('../controller/ClassRoomController');
const CourseController = require('../controller/CourseController');
const AcademyController = require('../controller/AcademyController');
const StudentCourseController = require('../controller/StudentCourseController');
const CourseTypeController = require('../controller/CourseTypeController');
const GradeController = require('../controller/GradeController');
const OtherController = require('../controller/OtherController');
// const ClassTimeController = require('../controller/ClassTimeController');
const NoticeController = require('../controller/NoticeController');

function initController(){
    app.use(StudentController.routes()).use(router.allowedMethods());
    app.use(TeacherController.routes()).use(router.allowedMethods());
    // app.use(ClassRoomController.routes()).use(router.allowedMethods());
    app.use(CourseController.routes()).use(router.allowedMethods());
    app.use(AcademyController.routes()).use(router.allowedMethods());
    app.use(StudentCourseController.routes()).use(router.allowedMethods());
    app.use(CourseTypeController.routes()).use(router.allowedMethods());
    app.use(GradeController.routes()).use(router.allowedMethods());
    app.use(OtherController.routes()).use(router.allowedMethods());
    // app.use(ClassTimeController.routes()).use(router.allowedMethods());
    app.use(NoticeController.routes()).use(router.allowedMethods());
}

module.exports = initController;